package com.example.good.enums;
/**
 * @author: Wang Mingjun
 * @date: 2021/1/27
 * @desc:
 */
public enum ResultEnum {
    /**
     * 提示信息
     */
    SUCCESS(200, "成功"),
    ERROR(101, "服务器错误"),

    ERROR_USER_NAME(10101, "用户名错误！"),
    ERROR_USER_PASSWORD(10102, "密码错误！"),

    ERROR_INSERT_PLACE(10501, "添加地点失败！"),
    ERROR_INSERT_POSITION_FACTOR(10502, "添加岗位系数失败！"),
    ERROR_UPDATE_POSITION_FACTOR(10503, "修改岗位系数失败！"),
    ERROR_POSITION_FACTOR(10514, "岗位名称已存在！"),
    ERROR_INSERT_RANK_SALARY(10504, "添加职级薪水失败！"),
    ERROR_UPDATE_RANK_SALARY(10505, "修改职级薪水失败！"),
    ERROR_ID_NULL(10506, "id为空！"),
    ERROR_SALARY_NULL(10507, "薪水值为空！"),
    ERROR_ID_ERROR(10508, "该id不存在！"),
    ERROR_PARAMETER_ERROR(10509, "输入有误，请重试！"),
    ERROR_INSERT_PLACE_COST_FAIL(10510, "添加用工地点失败！"),
    ERROR_UPDATE_PLACE_COST(10511, "修改用工成本失败！"),
    ERROR_COST_NAME(10512, "用工成本名称已存在！"),
    ERROR_PARAMETER_TYPE_ERROR(10513, "参数格式错误！"),
    ERROR_INSERT_PLACE_NAME(10514, "地点名称已存在！"),
    ERROR_INSERT_RANK_SALARY_NAME(10515, "该职级名称已存在！"),
    ERROR_DELETE_RANK_SALARY(10516, "删除职级薪水失败！"),
    ERROR_DELETE_POSITION_FACTOR(10517,"删除岗位系数失败！"),
    ERROR_DELETE_PLACE_COST_FAIL(10518,"删除用工成本项失败！"),

    OPERATION_FAILED(10519,"操作失败！"),
    OPERATION_SUCCESSFUL(10520,"操作成功！"),
    FAILED_TO_SUBMIT_QUOTATION(10521,"提交报价失败！"),
    FAILED_USER(10522,"删除人员失败！"),

    DATA_IS_WRONG(50002,"有错误记录"),
    SAVE_ERROR(50003,"数据库保存失败，请检查数据"),
    FINAL_CONSTANT(50005,"yyyyxxxx"),
    CONSTANT_REASON(50006,"reason"),
    CONSTANT_TOTAL(50007,"total");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    ResultEnum(final Integer code, final String msg) {
        this.code = code;
        this.msg = msg;
    }
}
